package edu.sctu.xialei.june.day20150618one.inheritance;

/**
 * Created by Administrator on 2015/6/18.
 */
public class Son extends Father {
    public Son(String color, String language, String name, short age) {
        super(color, language, name, age);
    }

    String mother;

    int nm = 50;

    public void setMother(String mother){
        this.mother = mother;
    }

    public void print(){
        System.out.println(mother);
        System.out.println(this.nm);
        System.out.println(super.nm);
    }
}
